package com.example.androidclass;

public class OneDay {
    private String day;
    private String date;
    public OneDay(String day, String date) {
        this.day = day;
        this.date = date;
    }
    public String getDay() {
        switch (day) {
            case "1":return "周一";
            case "2":return "周二";
            case "3":return "周三";
            case "4":return "周四";
            case "5":return "周五";
            case "6":return "周六";
            case "7":return "周日";
            default:return day;
        }
    }
    public String getDate() {
        return date;
    }
}
